﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<NetCard.Models.Router>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	RouterEdit
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>RouterEdit</h2>

    <% using (Html.BeginForm()) {%>
        <%= Html.ValidationSummary(true) %>
        
        <fieldset>
            <legend>Параметры</legend>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.id) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.id) %>
                <%= Html.ValidationMessageFor(model => model.id) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.ip) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.ip) %>
                <%= Html.ValidationMessageFor(model => model.ip) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.x) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.x, String.Format("{0:F}", Model.x)) %>
                <%= Html.ValidationMessageFor(model => model.x) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.y) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.y, String.Format("{0:F}", Model.y)) %>
                <%= Html.ValidationMessageFor(model => model.y) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.street) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.street) %>
                <%= Html.ValidationMessageFor(model => model.street) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.house) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.house) %>
                <%= Html.ValidationMessageFor(model => model.house) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.optional) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.optional) %>
                <%= Html.ValidationMessageFor(model => model.optional) %>
            </div>
            
            <div class="editor-field">
                <%= Html.HiddenFor(model => model.status)%>
            </div>
            <div class="editor-field">
                <%= Html.HiddenFor(model => model.projectId)%>
            </div>                       
            
            <p>
                <input type="submit" value="Сохранить изменения" />
            </p>
        </fieldset>

    <% } %>

<%--    <div>
        <%= Html.ActionLink("Вернуться", "Index") %>
    </div>--%>

</asp:Content>

